 xbuild /target:KeePass /property:Configuration=Release
  cp Ext/KeePass.exe.config Build/KeePass/Release/
 
  install -dm755 "$PKG"/usr/bin
  install -dm755 "$PKG"/usr/share/keepass/XSL

  install -Dm755 /sources/keepass "$PKG"/usr/bin/keepass
  install -Dm755 Build/KeePass/Release/KeePass.exe "$PKG"/usr/share/keepass/KeePass.exe
  install -Dm755 Ext/KeePass.config.xml "$PKG"/usr/share/keepass/KeePass.config.xml
  install -Dm755 Ext/KeePass.exe.config "$PKG"/usr/share/keepass/KeePass.exe.config

  install -m644 Ext/XSL/* "$PKG"/usr/share/keepass/XSL

  install -Dm644 /sources/keepass.1 "$PKG"/usr/share/man/man1/keepass.1

  # Proper installation of .desktop file
  desktop-file-install -m 644 --dir "$PKG"/usr/share/applications/ /sources/keepass.desktop

  # Install icons
  for size in 16 32 48 256; do
    install -Dm644 \
    KeePass_*_${size}x${size}x32.png \
    "$PKG"/usr/share/icons/hicolor/${size}x${size}/apps/keepass.png
  done

  # Needed for postinst with xdg-utils
  install -Dm644 /sources/keepass.xml "$PKG"/usr/share/mime/packages/keepass.xml